<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <style>
    video {
      width: 100vw;
      height: 100vh;
    }
  </style>
</head>

<body>
  <video id="video_source" controls="" autoplay="" name="media">
    <source type="video/mp4" />
  </video>
  <script>
    const { convertFileSrc } = window.__TAURI__.tauri
    const video = document.getElementById('video_source')
    const source = document.createElement('source')
    source.type = 'video/mp4'
    source.src = convertFileSrc('example/test_video.mp4', 'stream')
    video.appendChild(source)
    video.load()
  </script>
</body>

</html>